Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to timeField if no field is specified in date histogram aggregation #215

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

fridgepoet
Copy link
Member

@fridgepoet fridgepoet commented Jul 13, 2023

What this PR does / why we need it:
Based on grafana/grafana#60238

In a date_histogram aggregation, the aggregation input a user enters or chooses in the UI is taken into account. Otherwise if none is present, it defaults to the default timeField.

Which issue(s) this PR fixes:

Contributes to #199
Original issue it fixed would be the equivalent of grafana/grafana#8260

@fridgepoet fridgepoet changed the title Default to timeField if no field is specified in date histogram aggre… Default to timeField if no field is specified in date histogram aggregation Jul 13, 2023
@fridgepoet fridgepoet marked this pull request as ready for review July 14, 2023 10:05
@fridgepoet fridgepoet requested a review from a team as a code owner July 14, 2023 10:05
@fridgepoet fridgepoet requested review from sarahzinger and idastambuk and removed request for a team July 14, 2023 10:05
@fridgepoet fridgepoet merged commit 52e60e4 into main Jul 14, 2023
3 checks passed
@fridgepoet fridgepoet deleted the default_timeField_aggregation branch July 14, 2023 12:18
This was referenced Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants